#pragma once

#include <QWidget>
#include "ui_CUserImage.h"
#include <QMouseEvent>  
#include <QPainter>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QNetworkRequest>
#include <QDebug>
#include <QJsonDocument>
#include <QJsonObject>

class CUserImage : public QWidget
{
	Q_OBJECT



protected:
	void paintEvent(QPaintEvent* event);


public slots:
	void  postBack(QNetworkReply* reply);

public:

	CUserImage(QWidget* parent = nullptr);
	~CUserImage();

	void setUrl(QString Qul);

private:
	Ui::CUserImageClass ui;

	int	m_nheight = 50;
	int 	m_nwidth = 50;

	QNetworkAccessManager manager;
	QImage img;


};
